package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.EBaseDock;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QBaseDock is a Querydsl query type for EBaseDock
 */
@Label("BaseDock查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QBaseDock extends RelationalPathBase<EBaseDock> {

    private static final long serialVersionUID = -685244339;

    public static final QBaseDock baseDock = new QBaseDock("base_dock");

    public class PrimaryKeys {

        public final PrimaryKey<EBaseDock> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.ETbPlacePrice> _tb_placePriceBaseDock1Fk = createInvForeignKey(id, "base_dock_id");

    }

    public final StringPath code = createString("code");

    public final StringPath comments = createString("comments");

    public final StringPath id = createString("id");

    public final StringPath location = createString("location");

    public final StringPath name = createString("name");

    public final StringPath portName = createString("portName");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QBaseDock(String variable) {
        super(EBaseDock.class, forVariable(variable), "null", "base_dock");
        addMetadata();
    }

    public QBaseDock(String variable, String schema, String table) {
        super(EBaseDock.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QBaseDock(Path<? extends EBaseDock> path) {
        super(path.getType(), path.getMetadata(), "null", "base_dock");
        addMetadata();
    }

    public QBaseDock(PathMetadata<?> metadata) {
        super(EBaseDock.class, metadata, "null", "base_dock");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(code, ColumnMetadata.named("Code").withIndex(3).ofType(Types.VARCHAR).withSize(45));
        addMetadata(comments, ColumnMetadata.named("Comments").withIndex(5).ofType(Types.VARCHAR).withSize(256));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(location, ColumnMetadata.named("Location").withIndex(4).ofType(Types.VARCHAR).withSize(45));
        addMetadata(name, ColumnMetadata.named("Name").withIndex(2).ofType(Types.VARCHAR).withSize(45));
        addMetadata(portName, ColumnMetadata.named("portName").withIndex(6).ofType(Types.VARCHAR).withSize(255));
    }

}

